package com.woniuxy.sales.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.woniuxy.sales.model.entity.Products;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * 【车辆表】
*/
public interface ProductsService extends IService<Products> {

    Page<Products> findAll(int pageNum, int pageSize);

    Page<Products> findByType(int pageNum, int pageSize, int typeId);


    Page<Products> findByPrice(int pageNum, int pageSize, Integer minPrice, Integer maxPrice);


    Products addCar(String userId, Long id);

    List<Products> getCompare(String userId);

    List<Products> removeCompare(String userId,String productId);

    Boolean checkCompare(String productId);

    Products findById(Integer productId);

}
